package com.kaichaohulian.baocms.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.kaichaohulian.baocms.R;
import com.kaichaohulian.baocms.activity.ImagePagerActivity;

import java.util.List;

/**
 * Created by gaoyuan on 2017/5/4.
 */

public class HelpSongDetailAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    public HelpSongDetailAdapter( List<String> data) {
        super(R.layout.release_imageitem2, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {

        Glide.with(mContext).load(item).error(R.mipmap.logo).placeholder(R.mipmap.logo).into((ImageView) helper.getView(R.id.image));
     /*   ImagePagerActivity.ImageSize imageSize = new ImagePagerActivity.ImageSize(view.getMeasuredWidth(), view.getMeasuredHeight());
        ImagePagerActivity.startImagePagerActivity(, list, position, imageSize);*/
    }

}
